﻿
using hentity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 namespace hcache {
    /**
   *┌────────────────────────────────────────────────┐
   *│　描    述：TransferChain                                                    
   *│　作    者：sgj                                              
   *│　版    本：1.0                                              
   *│　创建时间：2020/10/10 9:12:53                        
   *└────────────────────────────────────────────────┘
   **/
    public class Edge {
        public int src;
        public int R;//电阻
        public Type driveType;
        public int driveId;
        public int des;
         public Edge(Node src,BStnRelation physical ,Type driveType,Node des) {
            this.src = src.eid;
            this.R = physical.distance;
            this.driveType = driveType;
            this.des = des.eid;
            driveId = physical.deviceId;
              des.beforeEdge.Add(this);
            src.nextEdge.Add(this);
         }

       public Node getSrc() {

            return TransferConfigFacade.getConfig(src);


        }

        public Node getDes() {

            return TransferConfigFacade.getConfig(des);


        }
    }
}
